#include "linkstack.h"

int main(int argc, char const *argv[])
{
    stack *s = init_stack();

    push(s, new_node(1)); 
    push(s, new_node(2)); 
    push(s, new_node(3)); 

    while(!is_empty(s))
    {
        int n;
        pop(s, &n);
        printf("%d\t", n);
    }
    printf("\n");

    return 0;
}
